package com.nl.lib_core.mvp

import android.content.Context
import androidx.lifecycle.LifecycleOwner

/**
 * 该父类主要负责：数据的获取(1.网络请求数据的获取 2.数据库数据的获取 3.定点资源文件数据读取的获取)
 *
 * 作者: wangfei 创建时间: 2021/9/1 包名: com.nl.lib_core.mvp 类名: BaseModel
 */
open class BaseModel(var context: Context) {

  var mLifecycleOwner: LifecycleOwner? = null

  fun injectLifecycleOwner(lifecycleOwner: LifecycleOwner) {
    mLifecycleOwner = lifecycleOwner
  }

  companion object {
    val TAG = BaseModel::class.java.simpleName
  }

  fun destroy() {}
}
